import { DbModule } from '@libs/db';
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { SlidesController } from './slides/slides.controller';
import { SlidesModule } from './slides/slides.module';
import { ArticlesController } from './articles/articles.controller';
import { ArticlesModule } from './articles/articles.module';

@Module({
  imports: [
    DbModule,
    SlidesModule,
    ArticlesModule,  // 导入连接数据库模块
  ],
  controllers: [AppController, SlidesController, ArticlesController],
  providers: [AppService],
})
export class AppModule {}
